package yl.hs.bmipfull.pojo.salemanage;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 华砂信息-谢景广
 * @category 销售合同预付款信息实体类
 */
@DBTable(disName = "销售合同预付款信息", mapCode = "contract_account")
public class ContractAccountEntity extends BaseEntity {


    private Long id;
    private String contractSN;
    private BigDecimal amount;
    @Nullable
    private Date lastRechargeTime;
    private BigDecimal lastRechargeAmount;
    @Nullable
    private Date lastDeductionTime;
    private BigDecimal lastDeductionAmount;
    private String deductionOrderSN;
    private Short state;

    /**
     * 获取主键
     *
     * @return
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置主键
     *
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取合同编号
     *
     * @return
     */
    public String getContractSN() {
        return this.contractSN;
    }

    /**
     * 设置合同编号
     *
     * @param contractSN
     */
    public void setContractSN(String contractSN) {
        this.contractSN = contractSN;
    }

    /**
     * 获取账户金额
     *
     * @return
     */
    public BigDecimal getAmount() {
        return this.amount;
    }

    /**
     * 设置账户金额
     *
     * @param amount
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 获取最后充值时间
     *
     * @return
     */
    public Date getLastRechargeTime() {
        return this.lastRechargeTime;
    }

    /**
     * 设置最后充值时间
     *
     * @param lastRechargeTime
     */
    public void setLastRechargeTime(Date lastRechargeTime) {
        this.lastRechargeTime = lastRechargeTime;
    }

    /**
     * 获取最后充值金额
     *
     * @return
     */
    public BigDecimal getLastRechargeAmount() {
        return this.lastRechargeAmount;
    }

    /**
     * 设置最后充值金额
     *
     * @param lastRechargeAmount
     */
    public void setLastRechargeAmount(BigDecimal lastRechargeAmount) {
        this.lastRechargeAmount = lastRechargeAmount;
    }

    /**
     * 获取最后扣款时间
     *
     * @return
     */
    public Date getLastDeductionTime() {
        return this.lastDeductionTime;
    }

    /**
     * 设置最后扣款时间
     *
     * @param lastDeductionTime
     */
    public void setLastDeductionTime(Date lastDeductionTime) {
        this.lastDeductionTime = lastDeductionTime;
    }

    /**
     * 获取最后扣款金额
     *
     * @return
     */
    public BigDecimal getLastDeductionAmount() {
        return this.lastDeductionAmount;
    }

    /**
     * 设置最后扣款金额
     *
     * @param lastDeductionAmount
     */
    public void setLastDeductionAmount(BigDecimal lastDeductionAmount) {
        this.lastDeductionAmount = lastDeductionAmount;
    }

    /**
     * 获取扣款单据编号
     *
     * @return
     */
    public String getDeductionOrderSN() {
        return this.deductionOrderSN;
    }

    /**
     * 设置扣款单据编号
     *
     * @param deductionOrderSN
     */
    public void setDeductionOrderSN(String deductionOrderSN) {
        this.deductionOrderSN = deductionOrderSN;
    }

    /**
     * 获取状态信息
     *
     * @return
     */
    public Short getState() {
        return this.state;
    }

    /**
     * 设置状态信息
     *
     * @param state
     */
    public void setState(Short state) {
        this.state = state;
    }
}
